package com.dhcy.mqtt.config.mqtt;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@EqualsAndHashCode(callSuper = false)
@Component
@ConfigurationProperties(prefix = "mqtt")
public class MqttConfig {

    /**
     * 用户名
     */
    String username;

    /**
     * 密码
     */
    String password;

    /**
     * 客户端id
     */
    String clientId;

    /**
     * 地址
     */
    String url;

    /**
     * 主题,多个主题用,隔开
     */
    String topic;

}
